package club.kingyin.commons.entity.core;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (Tag)表实体类
 *
 * @author makejava
 * @since 2022-02-16 18:14:09
 */
@Data
@SuppressWarnings("serial")
public class Tag extends Model<Tag> {
    //ID
    @TableId(type = IdType.AUTO)
    private Integer id;
    //标签
    private String name;
    //用户ID
    private Integer userid;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

